package com.chenyuan;

import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * @ClassName: dotest1
 * @Author: 陈元
 * @Description:
 * @CreateDate: 2024/8/2 23:07
 * @Version: 1.0
 * @E-mail:1765065492@qq.com
 * @Link:https://github.com/1765065492
 */
public class dotest1 {

    @Test
    public void dotest(){
        System.out.println("chenyuan!!!@@@@@");
    }


    @Test
    public void testAdd() {
        // 准备测试数据和对象
        Calculator calculator = new Calculator();

        // 执行被测试的方法
        int result = calculator.add(1, 3);

        // 验证结果是否符合预期
        Assert.assertEquals(result, 5, "Expected result should be 5");
    }
}
